package com.springboot.test.java.model;

import java.util.function.Consumer;

/**
 * @Author: TongRui乀
 * @Date: 2019-12-24 14:02
 * @description：
 */
public class Calculator {

    public static void calculate(Consumer<String> strategy, int money){

        String str = String.format("共计：%d 元", money);

        strategy.accept(str);
    }

}
